import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { JoinPage } from '../join/join';
import { SignUpPage } from "../sign-up/sign-up";
import { ExercisesPage } from "../exercises/exercises";
import {ResoursePage} from "../resourse/resourse";
import {MessagePage} from "../message/message";
import {AllCoursePage} from "../all-course/all-course";

/**
 * Generated class for the MainPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-main',
  templateUrl: 'main.html',
})
export class MainPage {

  constructor(public navCtrl: NavController, public navParams: NavParams) {
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad MainPage');
  }

  moreList() {

  }

  joinCourse() {
    this.navCtrl.push(JoinPage);
  }

  signUp(){
    this.navCtrl.push(SignUpPage);
  }

  exercises() {
    this.navCtrl.push(ExercisesPage);
  }

  resourse() {
    this.navCtrl.push(ResoursePage);
  }

  message() {
    this.navCtrl.push(MessagePage);
  }

  allCourse() {
    this.navCtrl.push(AllCoursePage);
  }
}
